package com.jvyou.app.ds.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 课时学员关联表(LessonStudent)表实体类
 *
 * @author 橘柚
 * @since 2025-04-17 17:08:42
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("ds_lesson_student")
public class LessonStudent implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * ID主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 课时ID
     */
    @TableField("lesson_id")
    private Long lessonId;

    /**
     * 学员ID
     */
    @TableField("student_id")
    private Long studentId;

    /**
     * 状态(0-未出席,1-已出席,2-请假,3-取消)
     */
    @TableField("status")
    private String status;

    /**
     * 评价分数(1-5星)
     */
    @TableField("evaluation_score")
    private Integer evaluationScore;

    /**
     * 评价内容
     */
    @TableField("evaluation_content")
    private String evaluationContent;

    /**
     * 乐观锁版本号
     */
    @TableField("version")
    private Integer version;

    /**
     * 创建人ID
     */
    @TableField(value = "created_by", fill = FieldFill.INSERT)
    private String createdBy;

    /**
     * 创建时间
     */
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    /**
     * 更新人ID
     */
    @TableField(value = "updated_by", fill = FieldFill.INSERT_UPDATE)
    private String updatedBy;

    /**
     * 更新时间
     */
    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

}
